<?$new = $data;
?>
<li class="clearfix list-news-item" id="list_favorites_<?=$new->news_id?>">
	<a href="/news/<?=$new->news_id?>"><img class="con_img" src="<?=NC::defaultPic($new->news_thumb)?>" height="100px" width="140px"/></a>
	<div class="col_right">
		<a class="top_title" href="/wai/<?=$new->news_id?>/<?=$new->url_host?>/<?=CHtml::encode($new->site_title)?>"><?=NC::ncSubstr($new->site_title,90,'...')?></a>
		<div class="tips_p clearfix">
			<div class="web">
				<img src="/images/tips_web.png" />
				<a href="<?=$new->link_url?>"><?=$new->url_host?></a>
			</div>
			<div class="cmt">
				<img src="/images/tips_cmt.png" />
				<a href="/news/<?=$new->news_id?>#cm<?=$new->news_id?>">评论(<?=$new->comment_num?>)</a>
			</div>
			<div class="name">
				<img src="/images/tips_user.png" />
				<a href="/upper/<?=$new->user_id?>"><?=$new->user_name?></a>
				<span>分享于<?=NC::to_time($new->post_time)?></span>
			</div>
		</div>
		<p class="cons"><?=NC::ncSubstr($new->news_desc,300,'...[<a href="/news/'.$new->news_id.'" class="more">查看更多</a>]')?></p>
		<?
			$tags = News::tagToLinks($new->news_tag);
		?>
		<div class="con_tags">
			<?foreach($tags as $val):?>
			<span class="con_tags_one">
				<img src="/images/news_tag.png" />
				<span class="onetag"><?=$val['tag_name']?></span>
			</span>
			<?endforeach?>
		</div>
		<div class="col_op">
			<?if(!Yii::app()->user->isGuest):?>
			<?$this->widget('Digg',array('news_id'=>$new->news_id,'digg_num'=>$new->digg_num,'action'=>isset($new->actions[0]) ? $new->actions[0] : false));?>
			<?$this->widget('Trash',array('news_id'=>$new->news_id,'trash_num'=>$new->trash_num,'action'=>isset($new->actions[0]) ? $new->actions[0] : false));?>
		<?else:?>
			<?$this->widget('Digg',array('news_id'=>$new->news_id,'digg_num'=>$new->digg_num,'action'=>false));?>
			<?$this->widget('Trash',array('news_id'=>$new->news_id,'trash_num'=>$new->trash_num,'action'=>false));?>
		<?endif?>
		</div>
	</div>
	<div class="right_top_edit">
		<img src="/images/edit_logo.png" class="edit_logo" />
		<a href="#edit_form_<?=$new->news_id?>" class="edit_but">编辑</a>
	</div>
	<div style="display:none">
		<div class="pop_form" id="edit_form_<?=$new->news_id?>" >
			<form method="post" action="/news/edit/id/<?=$new->news_id?>" id="postform<?=$new->news_id?>">
				<div class="pop_con">
					<div class="pop_left">
							<input type="hidden" id="News_link_url" name="link_url" value="http://www.softwareprojects.com/resources/programming/t-validate-a-credit-card-1682.html"
							style="border: medium none;" maxlength="255" size="60">
						<div class="web_title_txt">
							<label class="required" for="title_<?=$new->news_id?>">
								标题
								<span class="required">
									*
								</span>
							</label>
							<input type="text" id="News_site_title" name="site_title" id="title_<?=$new->news_id?>" value="<?=$new->site_title?>"
							maxlength="255" size="60">
						</div>
						<div class="web_con_txt">
							<label for="desc_<?=$new->news_id?>">
								描述
							</label>
							<textarea name="news_desc"id="desc_<?=$new->news_id?>"><?=$new->news_desc?></textarea>
						</div>
						<div class="web_con_txt clearfix tip_con">
							<label for="News_news_tag">
								标签
							</label>
							<input type="text" id="News_news_tag" name="news_tag" value="<?=$new->news_tag?>">
							<div class="jiantou">
							</div>
							<p class="tip_bor">
								<span class="con">
									请用
									<span class="tip">
										空格
									</span>
									分割多个标签
								</span>
							</p>
						</div>
						<div class="tip_con">
						</div>
						<div class="pop_submit">
							<input type="submit" value="发布" class="submit">
							<a href="javascript:;" class="cancel" onclick="$.fancybox.close()">
							</a>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div><!--display none--->
</li>
